package com.xci.xajtfb;

import com.github.lvyanyang.core.BaseApplication;
import com.github.lvyanyang.core.Const;
import com.github.lvyanyang.core.IUser;
import com.github.lvyanyang.core.XCI;
import com.github.lvyanyang.service.CoreService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * 应用程序启动类
 **/
@SpringBootApplication
@PropertySource("classpath:xci.properties")
@EnableTransactionManagement
@EnableCaching
@MapperScan(basePackages = {
        "com.xci.xajtfb.om.dao",
        "com.xci.xajtfb.bus.dao",
        "com.xci.xajtfb.gjzn.dao",
        "com.xci.xajtfb.wxc.dao"
})
@Controller
public class XajtfbApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(XajtfbApiApplication.class, args);
    }

    @GetMapping("/")
    @ResponseBody
    public String index() {
        return "服务已启动";
    }
}